package com.woniuxy.service.impl;

import com.woniuxy.entity.Coordinate;
import com.woniuxy.mapper.CoordinateMapper;
import com.woniuxy.service.CoordinateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CoordinateServiceImpl implements CoordinateService {
    @Resource
    private CoordinateMapper coordinateMapper;
    @Override
    public List<Coordinate> selectAllCoordinate() throws Exception {
        return coordinateMapper.selectByExample(null);
    }

    @Override
    public List<Coordinate> selectByCampName(String campName) throws Exception {
        return coordinateMapper.selectByCampName(campName);
    }
}
